﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000F29 RID: 3881
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueMagicEnterScRsp : IMessage<RogueMagicEnterScRsp>, IMessage, IEquatable<RogueMagicEnterScRsp>, IDeepCloneable<RogueMagicEnterScRsp>, IBufferMessage
	{
		// Token: 0x1700314D RID: 12621
		// (get) Token: 0x0600AE23 RID: 44579 RVA: 0x001D6FBB File Offset: 0x001D51BB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueMagicEnterScRsp> Parser
		{
			get
			{
				return RogueMagicEnterScRsp._parser;
			}
		}

		// Token: 0x1700314E RID: 12622
		// (get) Token: 0x0600AE24 RID: 44580 RVA: 0x001D6FC2 File Offset: 0x001D51C2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueMagicEnterScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x1700314F RID: 12623
		// (get) Token: 0x0600AE25 RID: 44581 RVA: 0x001D6FD4 File Offset: 0x001D51D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueMagicEnterScRsp.Descriptor;
			}
		}

		// Token: 0x0600AE26 RID: 44582 RVA: 0x001D6FDB File Offset: 0x001D51DB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterScRsp()
		{
		}

		// Token: 0x0600AE27 RID: 44583 RVA: 0x001D6FE4 File Offset: 0x001D51E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterScRsp(RogueMagicEnterScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.rogueTournCurSceneInfo_ = ((other.rogueTournCurSceneInfo_ != null) ? other.rogueTournCurSceneInfo_.Clone() : null);
			this.rogueTournCurInfo_ = ((other.rogueTournCurInfo_ != null) ? other.rogueTournCurInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600AE28 RID: 44584 RVA: 0x001D704C File Offset: 0x001D524C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicEnterScRsp Clone()
		{
			return new RogueMagicEnterScRsp(this);
		}

		// Token: 0x17003150 RID: 12624
		// (get) Token: 0x0600AE29 RID: 44585 RVA: 0x001D7054 File Offset: 0x001D5254
		// (set) Token: 0x0600AE2A RID: 44586 RVA: 0x001D705C File Offset: 0x001D525C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003151 RID: 12625
		// (get) Token: 0x0600AE2B RID: 44587 RVA: 0x001D7065 File Offset: 0x001D5265
		// (set) Token: 0x0600AE2C RID: 44588 RVA: 0x001D706D File Offset: 0x001D526D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurSceneInfo RogueTournCurSceneInfo
		{
			get
			{
				return this.rogueTournCurSceneInfo_;
			}
			set
			{
				this.rogueTournCurSceneInfo_ = value;
			}
		}

		// Token: 0x17003152 RID: 12626
		// (get) Token: 0x0600AE2D RID: 44589 RVA: 0x001D7076 File Offset: 0x001D5276
		// (set) Token: 0x0600AE2E RID: 44590 RVA: 0x001D707E File Offset: 0x001D527E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMagicCurInfo RogueTournCurInfo
		{
			get
			{
				return this.rogueTournCurInfo_;
			}
			set
			{
				this.rogueTournCurInfo_ = value;
			}
		}

		// Token: 0x0600AE2F RID: 44591 RVA: 0x001D7087 File Offset: 0x001D5287
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueMagicEnterScRsp);
		}

		// Token: 0x0600AE30 RID: 44592 RVA: 0x001D7098 File Offset: 0x001D5298
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueMagicEnterScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.RogueTournCurSceneInfo, other.RogueTournCurSceneInfo) && object.Equals(this.RogueTournCurInfo, other.RogueTournCurInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600AE31 RID: 44593 RVA: 0x001D70FC File Offset: 0x001D52FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num ^= this.RogueTournCurSceneInfo.GetHashCode();
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num ^= this.RogueTournCurInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600AE32 RID: 44594 RVA: 0x001D7167 File Offset: 0x001D5367
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600AE33 RID: 44595 RVA: 0x001D716F File Offset: 0x001D536F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600AE34 RID: 44596 RVA: 0x001D7178 File Offset: 0x001D5378
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.rogueTournCurSceneInfo_ != null)
			{
				output.WriteRawTag(18);
				output.WriteMessage(this.RogueTournCurSceneInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(32);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				output.WriteRawTag(82);
				output.WriteMessage(this.RogueTournCurInfo);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600AE35 RID: 44597 RVA: 0x001D71F0 File Offset: 0x001D53F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.rogueTournCurSceneInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurSceneInfo);
			}
			if (this.rogueTournCurInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueTournCurInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600AE36 RID: 44598 RVA: 0x001D7260 File Offset: 0x001D5460
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueMagicEnterScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.rogueTournCurSceneInfo_ != null)
			{
				if (this.rogueTournCurSceneInfo_ == null)
				{
					this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
				}
				this.RogueTournCurSceneInfo.MergeFrom(other.RogueTournCurSceneInfo);
			}
			if (other.rogueTournCurInfo_ != null)
			{
				if (this.rogueTournCurInfo_ == null)
				{
					this.RogueTournCurInfo = new RogueMagicCurInfo();
				}
				this.RogueTournCurInfo.MergeFrom(other.RogueTournCurInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600AE37 RID: 44599 RVA: 0x001D72F4 File Offset: 0x001D54F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600AE38 RID: 44600 RVA: 0x001D7300 File Offset: 0x001D5500
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 18U)
				{
					if (num != 32U)
					{
						if (num != 82U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							if (this.rogueTournCurInfo_ == null)
							{
								this.RogueTournCurInfo = new RogueMagicCurInfo();
							}
							input.ReadMessage(this.RogueTournCurInfo);
						}
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.rogueTournCurSceneInfo_ == null)
					{
						this.RogueTournCurSceneInfo = new RogueMagicCurSceneInfo();
					}
					input.ReadMessage(this.RogueTournCurSceneInfo);
				}
			}
		}

		// Token: 0x04004695 RID: 18069
		private static readonly MessageParser<RogueMagicEnterScRsp> _parser = new MessageParser<RogueMagicEnterScRsp>(() => new RogueMagicEnterScRsp());

		// Token: 0x04004696 RID: 18070
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004697 RID: 18071
		public const int RetcodeFieldNumber = 4;

		// Token: 0x04004698 RID: 18072
		private uint retcode_;

		// Token: 0x04004699 RID: 18073
		public const int RogueTournCurSceneInfoFieldNumber = 2;

		// Token: 0x0400469A RID: 18074
		private RogueMagicCurSceneInfo rogueTournCurSceneInfo_;

		// Token: 0x0400469B RID: 18075
		public const int RogueTournCurInfoFieldNumber = 10;

		// Token: 0x0400469C RID: 18076
		private RogueMagicCurInfo rogueTournCurInfo_;
	}
}
